package com.lanou.service.Impl;

import com.lanou.entity.InfoNotice;
import com.lanou.mapper.InfoNoticeMapper;
import com.lanou.service.InfoNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName InfoNoticeServiceImpl
 * @Description TODO
 * @Author chenzhaobao
 * @Date 2025年08月14日 11:09
 * @Version 1.0
 */
@Service
public class InfoNoticeServiceImpl implements InfoNoticeService {
    @Autowired
    private InfoNoticeMapper infoNoticeMapper;

    @Override
    public int insert(InfoNotice infoNotice) {
        return infoNoticeMapper.insert(infoNotice);
    }

    @Override
    public int deleteById(Integer id) {
        return infoNoticeMapper.deleteById(id);
    }

    @Override
    public int updateById(InfoNotice infoNotice) {
        return infoNoticeMapper.updateById(infoNotice);
    }

    @Override
    public InfoNotice selectById(Integer id) {
        return infoNoticeMapper.selectById(id);
    }

    @Override
    public List<InfoNotice> selectAll() {
        return infoNoticeMapper.selectAll();
    }
}
